/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * usrDadosJInternalFrame.java
 *
 * Created on 24/10/2009, 14:59:39
 */
package br.com.fatecpg.zanotti.jframes;

import br.com.fatecpg.zanotti.modelo.Sessao;

/**
 *
 * @author Luiz Zanotti
 */
public class usrDadosJInternalFrame extends javax.swing.JInternalFrame {

    public usrDadosJInternalFrame() {
        initComponents();

        resCargojLabel.setText(Sessao.getInstance().getNMCARGO());
        resIdCargojLabel.setText(Sessao.getInstance().getCDCARGO());
        resIdjLabel.setText(Sessao.getInstance().getCDFUNCIONARIO());
        resNomejLabel.setText(Sessao.getInstance().getNMFUNCIONARIO());

    }
        private static usrDadosJInternalFrame p;

    public static usrDadosJInternalFrame getInstancia() {
        if (p == null) {
            p = new usrDadosJInternalFrame();
        }
        return p;
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        nomejLabel = new javax.swing.JLabel();
        idjLabel = new javax.swing.JLabel();
        cargojLabel = new javax.swing.JLabel();
        idcargojLabel = new javax.swing.JLabel();
        resNomejLabel = new javax.swing.JLabel();
        resIdjLabel = new javax.swing.JLabel();
        resCargojLabel = new javax.swing.JLabel();
        resIdCargojLabel = new javax.swing.JLabel();

        setClosable(true);
        setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        setTitle("Dados do Usuário");

        nomejLabel.setText("Nome:");

        idjLabel.setText("ID:");

        cargojLabel.setText("Cargo:");

        idcargojLabel.setText("ID-Cargo:");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(idcargojLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(idjLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(nomejLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(cargojLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(resNomejLabel)
                    .addComponent(resIdCargojLabel)
                    .addComponent(resCargojLabel)
                    .addComponent(resIdjLabel))
                .addContainerGap(114, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nomejLabel)
                    .addComponent(resNomejLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(idjLabel)
                    .addComponent(resIdjLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cargojLabel)
                    .addComponent(resCargojLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(idcargojLabel)
                    .addComponent(resIdCargojLabel))
                .addContainerGap(12, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel cargojLabel;
    private javax.swing.JLabel idcargojLabel;
    private javax.swing.JLabel idjLabel;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JLabel nomejLabel;
    private javax.swing.JLabel resCargojLabel;
    private javax.swing.JLabel resIdCargojLabel;
    private javax.swing.JLabel resIdjLabel;
    private javax.swing.JLabel resNomejLabel;
    // End of variables declaration//GEN-END:variables
}
